﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();


    void actFirst();
     void actPre();
     void actNext();
     void actLast();

    void actGray(const QString& gray);

     void openImage();


protected:

    void	keyPressEvent(QKeyEvent* event) override;

private:
    Ui::MainWindow *ui;


    QStringList offLineTestImageNameList;
      int imagesNum = 0;
      int nowIndex = -1;
      QString nowImageName;
      QString _loadImgDir;

      void loadImage(const QString& nowSelImagePath);

      void openImagePath(const QString& _imageDir, const QString& img = "");

      void loadTestImage(const QString& imagePath);
      void updateImageNumLabel();
};
#endif // MAINWINDOW_H
